<?php
ob_start();
require_once '../Environment.php';
if (Environment::isDevelopment())
    defined('YII_DEBUG') or define('YII_DEBUG', true);
// include Yii bootstrap file
require_once(dirname(__FILE__).'/../../framework/yii.php');

$configFile = 'protected/config/main.php';
Yii::createWebApplication($configFile)->run();
ob_flush();